package com.ys.entity.logistics;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TL_DecCustomProduct", catalog="Id")
public class TlDecCustomProduct extends BaseEntity<TlDecCustomProduct> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="PlanOrderDetailId", nameJava="planOrderDetailId", typeDataBase="bigint")
	private Long planOrderDetailId;
	@YsField(nameDataBase="LinkJp", nameJava="linkJp", typeDataBase="varchar")
	private String linkJp;
	@YsField(nameDataBase="PriceIn", nameJava="priceIn", typeDataBase="decimal")
	private BigDecimal priceIn;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TlDecCustomProduct setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TlDecCustomProduct setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getPlanOrderDetailId() {
		return planOrderDetailId;
	}
	public TlDecCustomProduct setPlanOrderDetailId(Long planOrderDetailId) {
		this.planOrderDetailId = planOrderDetailId;
		return this;
	}
	public String getLinkJp() {
		return linkJp;
	}
	public TlDecCustomProduct setLinkJp(String linkJp) {
		this.linkJp = linkJp;
		return this;
	}
	public BigDecimal getPriceIn() {
		return priceIn;
	}
	public TlDecCustomProduct setPriceIn(BigDecimal priceIn) {
		this.priceIn = priceIn;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TlDecCustomProduct setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TlDecCustomProduct setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TlDecCustomProduct setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TlDecCustomProduct tlDecCustomProduct(
		String pbid,
		Long planOrderDetailId,
		String linkJp,
		BigDecimal priceIn,
		Integer status
			) {
		TlDecCustomProduct entity = new TlDecCustomProduct();
		entity.setPbid(pbid);
		entity.setPlanOrderDetailId(planOrderDetailId);
		entity.setLinkJp(linkJp);
		entity.setPriceIn(priceIn);
		entity.setStatus(status);
		return entity;
	}
}